/*
Copyright 2009 Homosuperiorus LLC 

Licensed under the Apache License, Version 2.0 (the "License"); you may not use 
this file except in compliance with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.

*/

package org.taglets.pub.account;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.logging.Logger;

import org.taglets.exception.TagletsException;
import org.taglets.pub.ApiUrl;
import org.taglets.pub.Client;
import org.taglets.pub.Route;

public class RemindClient extends Client {
    @SuppressWarnings("unused")
    private final Logger LOG = Logger.getLogger(RemindClient.class.getName());

    public RemindClient() {
        apiUrl = new ApiUrl(Route.ACCOUNT_REMIND);
    }

    public RemindResponse remind(String email, String siteName, String adminMail, String homeUrl) throws IOException, URISyntaxException, TagletsException, NoSuchMethodException {
        form.put("email", email);
        form.put("sitename", siteName);
        form.put("adminmail", adminMail);
        form.put("homeurl", homeUrl);
        RemindResponse response = (RemindResponse) this.post();
        return response;
    }
}
